package com.hdoit.apollo.logical.inventory.service;

import java.util.List;

import com.hdoit.apollo.logical.inventory.model.Adjustment;
import com.hdoit.apollo.logical.inventory.model.Inventory;
import com.hdoit.apollo.logical.inventory.model.InventoryShow;
import com.hdoit.apollo.logical.viewmodel.stock.InventoryCollocationInfo;
import com.hdoit.apollo.logical.viewmodel.stock.InventorySearch;
import com.tennetcn.data.dao.base.ISuperService;
import com.tennetcn.data.message.PagerModel;

/**
 * @author      tancongzhu
 * @email       
 * @createtime  2018年04月02日 14:45:41
 * @comment
 */
public interface IInventoryService extends ISuperService<Inventory>{

	public boolean applyInventory(Inventory inventory, List<InventoryShow> inventoryShows);

	public boolean applyInventoryShow(Inventory inventory, List<InventoryShow> inventoryShows);

	public Inventory queryModelById(String key);

	public Adjustment queryAdjustmentById(String key);

	public boolean saveNewInventory(Inventory inventory, String inventoryCargoIds);

	public boolean saveDraftInventoryInfo(Inventory inventory, InventoryCollocationInfo inventoryCollocationInfo);

	public List<Inventory> queryListList(InventorySearch search, PagerModel pagerModel);

	public int queryCountList(InventorySearch search);

}
